home *** CD-ROM | disk | FTP | other *** search
/ L' Effet Pommier 3 / L'Effet Pommier - Volume 03.iso / Graphismes / Bitmap / NIH Image 1.59 / Macros / Reference Card < prev    next >
Text File  |  1993-09-01  |  18KB  |  278 lines

  1. *    Operator
  2. +    Operator
  3. -    Operator
  4. /    Operator
  5. :=    Operator
  6. <    Operator
  7. <=    Operator
  8. <>    Operator
  9. =    Operator
  10. >    Operator
  11. >=    Operator
  12. abs(n)    MathFunc    Returns absolute value of n
  13. Acquire('Plug-in Name')    FileMenu    Runs a Photoshop compatible acquisition plug-in. The plug-in is assumed to be in the same folder as Image, or use a full path name such as 'HD400:Plug-ins:LaCie Silver Scanner'.
  14. Add    PasteControl    Paste; Add; or Paste; SetOption; Add;
  15. AddConstant(n)    EnhanceMenu    -255 <= n <= 255
  16. AddSlice    StacksMenu    Adds a slice following the current slice
  17. AdjustAreas(b)    AnalyzeMenu    
  18. AllSameSize    MacroFunc    Returns true if all open images have the same dimensions
  19. AnalyzeParticles    AnalyzeMenu    
  20. AND    Operator
  21. ApplyLUT    EnhanceMenu    Transforms the pixel data using the current look-up table
  22. arctan(n)    MathFunc    Returns  arctangent of n
  23. AutoThreshold    OptionsMenu    Set threshold to automatically determined value
  24. AverageFrames(╘str╒,frames)    SpecialMenu    ╘str╒ is some combination of 'Average', 'Integrate' and 'Video Rate Capture' and frames is the number of frames. Default values are used if the arguments are omitted.
  25. AverageSlices    StacksMenu    Averages all the slices in the current stack
  26. Beep    MacroProc    
  27. BEGIN    Key Word
  28. BitAnd(n1,n2)    MacroFunc    Returns n1 AND n2
  29. BitOr(n1,n2)    MacroFunc    Returns n1 OR n2
  30. BlueLUT    array[0..255]
  31. BOOLEAN    Type
  32. Button    MacroFunc    True if mouse button down
  33. Calibrated    MacroFunc    True if current image is density calibrated
  34. Capture    SpecialMenu    Captures and displays a single video frame
  35. Capture Color    StacksMenu    Capures a 24-bit RGB color image
  36. ChangeValues(v1,v2,v3)    EnhanceMenu    Changes pixels with a value in the range v1-v2 to a value of v3
  37. ChangeValues(v1,v2,v3)    MacroProc    Changes pixels with a value in the range v1-v2 to a value of v3
  38. ChoosePic(n)    MacroProc    Selects Nth image window without activating it. Faster than SelectPic but changes are not displayed.
  39. ChooseSlice(n)    MacroProc    Selects Nth slice in a stack without displaying it. Faster than SelectSlice but changes are not displayed. Use SelectSlice before exiting the macro to make sure the stack is correctly displayed.
  40. Clear    EditMenu    Erases current ROI to background color
  41. Close    FileMenu    Closes the active image window
  42. Convolve('Kernel file name')    EnhanceMenu    Note that the name can be a directory path such as 'HD80:Image:Kernels:Smooth'
  43. Copy    EditMenu    Copies contents of current ROI to Clipboard
  44. CopyResults    EditMenu    Copies measurement results to the Clipboard
  45. cos(n)    MathFunc    Returns cosine of n (radians)
  46. cValue(PixelValue)    MacroFunc    Converts raw pixel values(0-255) to density calibrated values
  47. DeleteSlice    StacksMenu    Deletes the current slice
  48. Dilate    EnhanceMenu    
  49. Dispose    FileMenu    Similar to Close, but user is never prompted to save changes
  50. DisposeAll    FileMenu    
  51. Dither    EnhanceMenu    
  52. DIV    Operator
  53. Divide    PasteControl    Paste; Divide; or Paste; SetOption; Divide;
  54. DO    Key Word
  55. DoAnd    PasteControl    Paste; DoAnd; or Paste; SetOption; DoAnd;
  56. DoBlend    PasteControl    Paste; DoBlend; or Paste; SetOption; DoBlend;
  57. DoCopy    PasteControl    Paste; DoCopy; or Paste; SetOption; DoCopy;
  58. DoOr    PasteControl    Paste; DoOr; or Paste; SetOption; DoOr;
  59. DoReplace    PasteControl    Paste; DoReplace; or Paste; SetOption; DoReplace;
  60. DoXor    PasteControl    Paste; DoXor; or Paste; SetOption; DoXor;
  61. DrawBoundary    EditMenu    Outlines current ROI using foreground color. Use SetLineWidth to control width of outline.
  62. DrawNumber(n)    MacroProc    Displays n at the current location(set with MoveTo)
  63. DrawScale    EditMenu    
  64. DrawText('text')    MacroProc    Displays text at the current location
  65. Duplicate    Accepts Multiple Arugments zero Fill    
  66. Duplicate('Window Title')    FileMenu    
  67. ELSE    Key Word
  68. END    Key Word
  69. EnhanceContrast    EnhanceMenu    
  70. Erode    EnhanceMenu    
  71. Exit    MacroProc    Terminate execution of the macro
  72. exp(n)    MathFunc    Returns exponential of n
  73. Export    Accepts Multiple Arugments zero Fill    
  74. Export('name')    FileMenu    Use SetExport to specify what to export
  75. Fill    EditMenu    Fills current ROI with foreground color
  76. FlipHorizontal    EditMenu    
  77. FlipVertical    EditMenu    
  78. FOR    Key Word
  79. GetColumn(x,y,length)    MacroProc    Copies a column of pixels from active image to the line buffer
  80. GetInfo    FileMenu    
  81. GetLine(x1,y1,x2,y2,LineWidth)    MacroProc    Returns coordinates and width of current straight line selection. Sets x1=-1 if there is no line selection.
  82. GetMouse(x,y)    MacroProc    Returns location of cursor in local pixel coordinates
  83. GetNumber('Prompt',default)    MacroFunc    Displays a dialog box and returns with number entered
  84. GetPicSize(width,height)    MacroProc    Returns width and height of active image
  85. GetPixel(x,y)    MacroFunc    Returns the pixel value at (x,y)
  86. GetResults(n,mean,mode,min,max)    AnalyzeMenu    Use after Measure. Values returned are always  uncalibrated. Use cValue function to calibrate them.
  87. GetRoi(left,top,width,height)    MacroProc    Returns ROI location and size. Sets width=0 if no ROI.
  88. GetRow(x,y,length)    MacroProc    Copies a row of pixels from the active image to the line buffer
  89. GetSliceSpacing    MacroFunc    Returns slice spacing(in pixels) of current stack
  90. GetThresholds(lower,upper)    OptionsMenu    In density slicing mode, returns the lower and upper thresholds. In thresholding mode, lower is set to the threshold and upper is set to 255. Otherwise, both are set to zero
  91. GetTime(year, month,day, hour, minute, second, dayofweek)    MacroProc    
  92. GreenLUT    array[0..255]
  93. histogram    array[0..255]
  94. IF    Key Word
  95. IgnoreParticlesTouchingEdge(b)    AnalyzeMenu    
  96. Import    Accepts Multiple Arugments zero Fill    
  97. Import('File Name')    FileMenu    
  98. IncludeInteriorHoles(b)    AnalyzeMenu    
  99. InsetRoi(delta)    MacroProc    Shrinks or expands(if delta<0) ROI by delta
  100. INTEGER    Type
  101. Invert    EditMenu    Linearly inverts image or ROI
  102. InvertLUT    OptionsMenu    Inverts video look-up table
  103. InvertY(b)    OptionsMenu    Invert Y-coordinates if b is true
  104. KillRoi    MacroProc    Disables the current ╥marching ants╙ selection
  105. LabelParticles(b)    AnalyzeMenu    b=true or false
  106. LineBuffer    array[0..4095]
  107. LineTo(x,y)    MacroProc    Draws a line from current location to (x,y)
  108. ln(n)    MathFunc    Returns natural logarithm of n
  109. MACRO    Key Word
  110. MakeBinary    EnhanceMenu    
  111. MakeLineRoi(x1,y1,x2,y2)    MacroProc    Origin(0,0) is at upper left. Coordinates can be real numbers.
  112. MakeNewStack    Accepts Multiple Arugments zero Fill    
  113. MakeNewStack('name')    MacroProc    Creates a new 1-slice stack. Use SetNewSize to specify size.
  114. MakeNewWindow    Accepts Multiple Arugments zero Fill    
  115. MakeNewWindow('Name')    FileMenu    Use SetNewSize to specify the size of the new window
  116. MakeOvalRoi(left,top,width,height)    MacroProc    
  117. MakeRoi(left,top,width,height)    MacroProc    Origin(0,0) is at upper left
  118. MarkSelection    AnalyzeMenu    Same as the Label SelectionMenu command
  119. Measure    AnalyzeMenu    
  120. MOD    Operator
  121. MoveRoi(dx,dy)    MacroProc    Moves ROI right dx pixels and down dy pixels
  122. MoveTo(x,y)    MacroProc    Origin is always at upper left corner
  123. MoveWindow(x,y)    MacroProc    Moves current window to global screen coordinates (x,y)
  124. Multiply    PasteControl    Paste; Multiply; or Paste; SetOption; Multiply;
  125. MultiplyByConstant(n)    EnhanceMenu    0.0 <= n <= 255.0
  126. n:=ord(str)    StringFunc    Returns the ordinal number of the first character in a string(e.g. ord('A')=65). Returns -1 if the string is empty.
  127. n:=StringToNum(str)    StringFunc    Converts a string to a real number. Returns zero if the string contains no digits.
  128. nCoordinates    MacroFunc    Returns the number of coordinates for the current selection
  129. NewTextWindow('Name')    FileMenu    Creates a new text window with the title 'Name'
  130. NextWindow    WindowsMenu    
  131. NOT    Operator
  132. nPics    MacroFunc    Returns number of image windows
  133. nSlices    MacroFunc    Returns number of slices in current stack
  134. odd(n)    MathFunc    True if integer n odd
  135. Open    Accepts Multiple Arugments zero Fill    
  136. Open('File Name')    FileMenu    
  137. OpenSerial('Options')    StringFunc    Sets up the modem port for serial I/O. 'Options' contains '300 baud', '1200 baud', '2400 baud', '9600 baud' or  '19200 baud'; 'no parity', 'even parity' or 'odd parity';  'seven data' or 'eight data';  'One stop' or 'two stop'. The default is 9600 baud, no parity, eight data, one stop'.
  138. OR    Operator
  139. Outline    EnhanceMenu    
  140. OutlineParticles(b)    AnalyzeMenu    
  141. Paste    EditMenu    Pastes into current ROI if Clipboard object and ROI have the same dimensions, otherwise, pastes into center of image.
  142. PhotoMode(b)    SpecialMenu    Set b true to enable ╥Photo Mode╙ and false to disable it
  143. PicNumber    MacroFunc    Returns number(used by SelectPic) of active window
  144. PlotProfile    AnalyzeMenu    Replaces Column Average Plot
  145. PlotXYZ    MacroProc    Plots XYZ coordinate data stored in a text file
  146. Print    FileMenu    Prints the active image
  147. PROCEDURE    Key Word
  148. PropagateDensity    OptionsMenu    Propagates current density calibration to all other open images
  149. PropagateLUT    OptionsMenu    Propagates current LUT to all other open images
  150. PropagateSpatial    OptionsMenu    Propagates current spatial calibration to all other open images
  151. PutColumn(x,y,length)    MacroProc    Copies length pixels from line buffer to a column in image
  152. PutMessage    Accepts Multiple Arugments Blank Fill    
  153. PutMessage('message')    MacroProc    Displays 'message' in a dialog box. Accepts multiple arguments like the Write routine.
  154. PutPixel(x,y,value)    MacroProc    Displays value at location (x,y)
  155. PutRow(x,y,length)    MacroProc    Copies length pixels from line buffer to a row in the image
  156. PutSerial    Accepts Multiple Arugments Blank Fill    
  157. PutSerial(str)    StringFunc    Writes 'str' to the modem port. Like the Write routine, it accepts multiple arguments(e.g. PutSerial('v=',v:1:2)).
  158. random    MathFunc    Generates a random number between 0 and 1
  159. rAngle    array[1..<Max Measurements>]
  160. rArea    array[1..<Max Measurements>]
  161. rCount    MacroFunc    Returns current measurement counter value
  162. REAL    Type
  163. Redirect(b)    AnalyzeMenu    Enable/disable redirected sampling. b=true or false.
  164. RedLUT    array[0..255]
  165. ReduceNoise    EnhanceMenu    
  166. REPEAT    Key Word
  167. RequiresVersion(n)    MacroProc    Aborts macro if Image version number is less than specified
  168. ResetCounter    AnalyzeMenu    Sets the measurement counter to zero
  169. ResetGrayMap    MacroProc    Equivalent to clicking on reset icon in Map window
  170. Reslice    StacksMenu    
  171. RestoreRoi    AnalyzeMenu    Same as the Restore SelectionMenu command
  172. RestoreState    MacroProc    Restore settings saved by SaveState
  173. RevertToSaved    FileMenu    
  174. RGBToIndexed('string')    StacksMenu    Where string contains some combination of 'System LUT', 'Existing LUT, 'Custom LUT' and 'Dither'. Custom LUT and Dither are the defaults. 
  175. rLength    array[1..<Max Measurements>]
  176. rMajor    array[1..<Max Measurements>]
  177. rMax    array[1..<Max Measurements>]
  178. rMean    array[1..<Max Measurements>]
  179. rMin    array[1..<Max Measurements>]
  180. rMinor    array[1..<Max Measurements>]
  181. RotateLeft(b)    EditMenu    Create new window if b true
  182. RotateRight(b)    EditMenu    Create new window if b true
  183. Round(n)    MacroFunc    Converts a real value to integer with rounding
  184. rStdDev    array[1..<Max Measurements>]
  185. rUser1    array[1..<Max Measurements>]
  186. rUser2    array[1..<Max Measurements>]
  187. rX    array[1..<Max Measurements>]
  188. rY    array[1..<Max Measurements>]
  189. Save    FileMenu    Use SetPicName('Name') to specify file name
  190. SaveAll    FileMenu    
  191. SaveAs    Accepts Multiple Arugments zero Fill    
  192. SaveAs('name')    FileMenu    Saves currently active image using the specified name
  193. SaveState    MacroProc    Saves foreground and background color, new window width and height, status of Invert Y flag, and various ScaleAndRotate and SetScaling parameters
  194. ScaleAndRotate(xscale,yscale,angle)    EditMenu    
  195. ScaleMath(b)    OptionsMenu    b=true or false. Sets or resets Scale Image Arithmetic flag.
  196. ScaleSelection(xscale,yscale)    EditMenu    0.05 <= xscale,yscale <= 25.0
  197. Scion    array[1..4] DACA DACB ControlRegRO DigitalOutput
  198. SelectAll    EditMenu    
  199. SelectPic(n)    MacroProc    Activates Nth image window
  200. SelectSlice(n)    MacroProc    Display Nth slice in a stack
  201. SelectWindow(╘name╒)    MacroProc    Activate the window with the title ╘name╒
  202. SetBackgroundColor(c)    MacroProc    0 <= c <= 255
  203. SetBinaryCount(n)    EnhanceMenu    1 <=n <= 8
  204. SetChannel(channel)    SpecialMenu    Sets the video input channel, where channel=1, 2, 3, or 4
  205. SetCounter(n)    MacroProc    Sets the measurement counter to n
  206. SetCursor('str')    MacroProc    Changes cursor shape. Set 'str' to 'watch', 'cross' or 'arrow'.
  207. SetCustom(width,height,offset,slices)    FileMenu    Specifies the width, height, offset, and number of slices for imported files. The slices argument is optional. 
  208. SetDensitySlice(lower,upper)    OptionsMenu    1 <= lower,upper <= 254. SetDensitySlice(0,0) disables density slicing, SetDensitySlice(255,255) enables it.
  209. SetExport('mode')    FileMenu    Where mode is one of: 'Raw', 'MCID', 'Text', 'LUT', 'Measurements', 'Plot Values', Histogram Values' or  'XY Coordinates'
  210. SetFont('Font name')    OptionsMenu    Font Name=Geneva, Monoco, Helvetica, Times, etc.
  211. SetFontSize(size)    OptionsMenu    Set font size in points, where 6<=size<=720
  212. SetForegroundColor(c)    MacroProc    0 <= c <= 255, were 0=white and 255=black
  213. SetImport('string')    FileMenu    Where string contains some combination of: 'TIFF', 'MCID', 'Palette', 'Text', 'Custom', '8-bits', '16-bits Unsigned', '16-bits  Signed', 'Swap Bytes', 'Auto-Scale', Fixed Scale', 'Calibrate' and 'Open All'
  214. SetImportMinMax(min,max)    FileMenu    Disables auto-scaling and fixes the range of Imported files
  215. SetLineWidth(width)    MacroProc    
  216. SetNewSize(width,height)    OptionsMenu    Specifies width and height of new windows
  217. SetOption    MacroProc    Equivalent to holding down Option key
  218. SetOptions('string')    AnalyzeMenu    Where ╘string╒ contains some combination of 'Area', 'Mean', 'Std. Dev.', 'X-Y Center', 'Mode', 'Perimeter'(or 'Length'), 'Major', 'Minor', 'Angle',  'Int. Den.', 'Min/Max', 'User1',  or 'User2'. Any variable not listed is disabled.
  219. SetPalette(string)    OptionsMenu    Where string is one of: 'Grayscale', 'PseudoColor', 'System Palette', 'Rainbow' or 'Spectrum'
  220. SetParticleSize(min,max)    AnalyzeMenu    
  221. SetPicName    Accepts Multiple Arugments zero Fill    
  222. SetPicName('Name')    MacroProc    Renames the currently active image window
  223. SetPlotLabels(b)    OptionsMenu    b=true or false
  224. SetPlotScale(min,max)    OptionsMenu    Set min and max to zero for auto-scaling
  225. SetPlotSize(width,height)    OptionsMenu    Set width and height to zero for auto-sizing of plots
  226. SetPrecision(digits[,fwidth])    AnalyzeMenu    Were digits is the number of digits to the right of the decimal point and fwidth(optional) is the field width
  227. SetScale(scale,'units')    AnalyzeMenu    Scale is the number of pixels per unit of measurement. 'Units' is one of the following: 'nm', '╡m'(or 'um'), 'mm', 'cm', 'me', 'km', in', 'ft', 'mi', or 'pixels'. Use SetScale(0,'pixels') to disable spatial calibration and SetScale(0,'') to activate the Set Scale dialog box.
  228. SetScaling('string')    EditMenu    Where string contains  some combination of: 'Nearest', 'Bilinear', 'New Window', 'Same Window' or  'Interactive'
  229. SetSliceSpacing(n)    MacroProc    Set slice spacing(in pixels) for use by Reslice and Project commands
  230. SetText(string)    OptionsMenu    Where string contains any combination of: 'Bold', 'Italic', 'Underline', 'Outline', 'Shadow', 'Left Justified', 'Right Justified', 'Centered', 'No Background', or 'With Background'
  231. SetThreshold(level)    OptionsMenu    0 <= level <= 255. SetThreshold(-1) disables thresolding
  232. SetUser1Label('Label')    MacroProc    Replaces label used for User 1 column in Results window
  233. SetUser2Label('Label')    MacroProc    Replaces label used for User 2 column in Results window
  234. SetVideo('string')    SpecialMenu    Where 'string' is some combination of 'Invert, 'Highlight', 'Oscillating', 'Trigger', 'Blind' or 'Separate'. Any option not specified is disabled.
  235. Shadow    EnhanceMenu    
  236. Sharpen    EnhanceMenu    Precede with SetOption for greater sharpening
  237. ShowHistogram    AnalyzeMenu    
  238. ShowMessage    Accepts Multiple Arugments Blank Fill    
  239. ShowMessage('message')    MacroProc    Displays 'message' in the Values window. Accepts multiple arguments like the Write routine. Use a back-slash('\') to start a new line.
  240. ShowPasteControl    WindowsMenu    Activates the Paste Control window
  241. ShowResults    AnalyzeMenu    
  242. sin(n)    MathFunc    Returns sine of n(radians)
  243. Skeletonize    EnhanceMenu    
  244. SliceNumber    MacroFunc    Returns number of current slice in a stack
  245. Smooth    EnhanceMenu    Precede with SetOption for unweighted smoothing
  246. sqr(n)    MathFunc    Returns square of n
  247. sqrt(n)    MathFunc    Returns sqrt of n
  248. StartCapturing    SpecialMenu    Start live video
  249. StopCapturing    SpecialMenu    Stop live video
  250. str:=chr(n)    StringFunc    Converts a positive integer in the range 0..255 to a one character string(e.g. chr(65) = 'A').
  251. str:=concat(str1, str2,...)    StringFunc    Concatenates a series of strings
  252. str:=GetSerial    StringFunc    Returns the next available character in the serial(modem) input buffer as a one character string or returns an empty string if the buffer is empty.
  253. str:=GetString('Prompt','def.')    StringFunc    Displays a dialog box and returns with the string entered. The first argument is the prompting message and the second argument(optional) is the default input string.
  254. STRING    Type
  255. Subtract    PasteControl    Paste; Subtract; or Paste; SetOption; Subtract;
  256. SubtractBackground('str',radius)    EnhanceMenu    Where 'str' is one of: '1D Horizontal', '1D Vertical', '2D Rolling Ball' or '2D Remove Streaks'.  Add 'faster' to 'str'(e.g. '2D Rolling Ball(faster)') for faster operation.
  257. SurfacePlot    AnalyzeMenu    Creates a surface plot of the current image. Use SetNewSize to specify the size of the plot.
  258. THEN    Key Word
  259. TickCount    MacroFunc    Returns the number of ticks(sixtieths of a second) since system last started
  260. TileWindows    WindowsMenu    
  261. TO    Key Word
  262. TraceEdges    EnhanceMenu    Precede with SetOption to prevent auto-thresholding
  263. Trunc(n)    MacroFunc    Converts a real value to integer with truncation
  264. Undo    EditMenu    
  265. UndoBufferSize    MacroFunc    Returns the current size of the Undo and Clipboard buffers
  266. UNTIL    Key Word
  267. UpdateResults    MacroProc    Redisplays last measurement in Values and Results windows
  268. UserCode(n,p1,p2,p3)    MacroProc    Calls a user written Pascal routine, where n specifies which routine is called and p1, p2 and p3 are real input parameters
  269. VAR    Key Word
  270. Wait(seconds)    MacroProc    Fractions of a second are allowed, e.g., wait(1.5)
  271. WaitForTrigger    MacroProc    Waits for external trigger if using QuickCapture or Scion LG-3 frame grabber, otherwise waits for mouse button
  272. WandAutoMeasure(b)    AnalyzeMenu    
  273. WHILE    Key Word
  274. Write(e1,e2,...)    MacroProc    Draws text, variables, or constants at the current location. Like Writeln procedure in Pascal, expressions may have optional field width specifications in the form e:f1:f2(e.g., write('M=',mean:8:3), where f1 is the field width, and f2 specifies the number of digits to the right of the decimal point.
  275. Writeln(e1,e2,...)    MacroProc    Similar to Write, but does the equivalent of a line feed and carriage return after displaying the specified values.
  276. xCoordinates    array[1..nCoordinates]
  277. yCoordinates    array[1..nCoordinates]
  278.